﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F01 RID: 3841
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueHexAvatarSelectResult : IMessage<RogueHexAvatarSelectResult>, IMessage, IEquatable<RogueHexAvatarSelectResult>, IDeepCloneable<RogueHexAvatarSelectResult>, IBufferMessage
	{
		// Token: 0x170030CD RID: 12493
		// (get) Token: 0x0600AC4D RID: 44109 RVA: 0x001D2224 File Offset: 0x001D0424
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueHexAvatarSelectResult> Parser
		{
			get
			{
				return RogueHexAvatarSelectResult._parser;
			}
		}

		// Token: 0x170030CE RID: 12494
		// (get) Token: 0x0600AC4E RID: 44110 RVA: 0x001D222B File Offset: 0x001D042B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueHexAvatarSelectResultReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170030CF RID: 12495
		// (get) Token: 0x0600AC4F RID: 44111 RVA: 0x001D223D File Offset: 0x001D043D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueHexAvatarSelectResult.Descriptor;
			}
		}

		// Token: 0x0600AC50 RID: 44112 RVA: 0x001D2244 File Offset: 0x001D0444
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHexAvatarSelectResult()
		{
		}

		// Token: 0x0600AC51 RID: 44113 RVA: 0x001D224C File Offset: 0x001D044C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHexAvatarSelectResult(RogueHexAvatarSelectResult other) : this()
		{
			this.miracleSelectId_ = other.miracleSelectId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AC52 RID: 44114 RVA: 0x001D2271 File Offset: 0x001D0471
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHexAvatarSelectResult Clone()
		{
			return new RogueHexAvatarSelectResult(this);
		}

		// Token: 0x170030D0 RID: 12496
		// (get) Token: 0x0600AC53 RID: 44115 RVA: 0x001D2279 File Offset: 0x001D0479
		// (set) Token: 0x0600AC54 RID: 44116 RVA: 0x001D2281 File Offset: 0x001D0481
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MiracleSelectId
		{
			get
			{
				return this.miracleSelectId_;
			}
			set
			{
				this.miracleSelectId_ = value;
			}
		}

		// Token: 0x0600AC55 RID: 44117 RVA: 0x001D228A File Offset: 0x001D048A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueHexAvatarSelectResult);
		}

		// Token: 0x0600AC56 RID: 44118 RVA: 0x001D2298 File Offset: 0x001D0498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueHexAvatarSelectResult other)
		{
			return other != null && (other == this || (this.MiracleSelectId == other.MiracleSelectId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AC57 RID: 44119 RVA: 0x001D22C8 File Offset: 0x001D04C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MiracleSelectId != 0U)
			{
				num ^= this.MiracleSelectId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AC58 RID: 44120 RVA: 0x001D2307 File Offset: 0x001D0507
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AC59 RID: 44121 RVA: 0x001D230F File Offset: 0x001D050F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AC5A RID: 44122 RVA: 0x001D2318 File Offset: 0x001D0518
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MiracleSelectId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.MiracleSelectId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AC5B RID: 44123 RVA: 0x001D234C File Offset: 0x001D054C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MiracleSelectId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MiracleSelectId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AC5C RID: 44124 RVA: 0x001D238A File Offset: 0x001D058A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueHexAvatarSelectResult other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MiracleSelectId != 0U)
			{
				this.MiracleSelectId = other.MiracleSelectId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AC5D RID: 44125 RVA: 0x001D23BB File Offset: 0x001D05BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AC5E RID: 44126 RVA: 0x001D23C4 File Offset: 0x001D05C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.MiracleSelectId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040045F3 RID: 17907
		private static readonly MessageParser<RogueHexAvatarSelectResult> _parser = new MessageParser<RogueHexAvatarSelectResult>(() => new RogueHexAvatarSelectResult());

		// Token: 0x040045F4 RID: 17908
		private UnknownFieldSet _unknownFields;

		// Token: 0x040045F5 RID: 17909
		public const int MiracleSelectIdFieldNumber = 10;

		// Token: 0x040045F6 RID: 17910
		private uint miracleSelectId_;
	}
}
